package com.chengduservice.common;

import java.util.List;

/**
 * create by yongli on 2021-12-19 10:21
 * 自定义Page返回对象
 */

public class Page<T> {
    private long current;
    private long size;
    private long total;
    private List<T> data;

    public Page() {
    }

    public Page(long current, long size) {
        this.current = current;
        this.size = size;
    }

    public Page(long current, long size, long total, List<T> data) {
        this.current = current;
        this.size = size;
        this.total = total;
        this.data = data;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
